<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js对象的原型</title>
		<script>
		Date.prototype.toChinaDateFormat=function(){
			return this.getFullYear()+"年"+(this.getMonth()+1)+"月"+this.getDate()+"日"+this.getHours()+"时"+this.getMinutes()+"分";
		};
		String.prototype.toChinaBig=function(){
			return this.replaceAll("1","壹");
		};
		
			var d=new Date();
			var s=d.toChinaDateFormat();
			alert (s);
			var str="何照耀损失了1千1百元";
			str=str.toChinaBig();
			alert(str);
		</script>
	</head>
	<body>
	</body>
</html>
